set(target lzm_lwipport)

# lib                
add_library(${target} STATIC)
target_link_libraries(${target} PUBLIC pthread ${LZM_ALL_LIBS})

# port
target_include_directories(${target} PUBLIC ${LWIP_INC_PUB})

set(port_src
        ./sys_arch.c
)

target_sources(${target} PRIVATE
        ${port_src}
)

set(LZM_ALL_LIBS "${LZM_ALL_LIBS};${target}" CACHE INTERNAL "")